package com.lier.common.constant;

/**
 * @author liyd
 * @description
 * @date 2025/6/17 10:37
 */
public class WareConstant {

    public enum PurchaseStatusEnum {
        /**
         * 新建
         */
        CREATED(0, "新建"),
        /**
         * 已分配
         */
        ASSINGED(1, "已分配"),
        /**
         * 已领取
         */
        RECEIVE(2, "已领取"),
        /**
         * 已完成
         */
        FINISH(3, "已完成"),
        /**
         * 有异常
         */
        HASERROR(4, "有异常")
        ;

        private final int code;
        private final String desc;

        PurchaseStatusEnum(int code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public int getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }

    }


    public enum PurchaseDetailStatusEnum {
        /**
         * 新建
         */
        CREATED(0, "新建"),
        /**
         * 已分配
         */
        ASSINGED(1, "已分配"),
        /**
         * 已领取
         */
        BUYING(2, "正在采购"),
        /**
         * 已完成
         */
        FINISH(3, "已完成"),
        /**
         * 有异常
         */
        HASERROR(4, "采购失败")
        ;

        private final int code;
        private final String desc;

        PurchaseDetailStatusEnum(int code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public int getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }

    }
}
